Skip to content

Conversation

@colinloretz
Copy link
Contributor

Fixes #7268

@colinloretz colinloretz requested a review from a team as a code owner November 26, 2024 21:20
@colinloretz colinloretz requested review from JustinBeckwith and appellation and removed request for a team November 26, 2024 21:20
@colinloretz colinloretz changed the title Update ends_at and starts_at to be nullable, not optional Entitlement: Update ends_at and starts_at to be nullable, not optional Nov 26, 2024
@MCausc78
Copy link
Contributor

Why not stop sending fields as expected per documentation?

Comment on lines 23 to 24
| starts_at | ?ISO8601 timestamp | Start date at which the entitlement is valid. Not present when using test entitlements. |
| ends_at | ?ISO8601 timestamp | Date at which the entitlement is no longer valid. Not present when using test entitlements. |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not present when using test entitlements.

I believe this should be amended if this is always present, or null, or otherwise?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct, thank you! We should have updated these for the entitlement migration but they were missed.

@colinloretz colinloretz merged commit e70f3ce into main Dec 2, 2024
4 checks passed
@colinloretz colinloretz deleted the update-ends-at branch December 2, 2024 20:29
Nihlus added a commit to Remora/Remora.Discord that referenced this pull request Feb 13, 2025
DonovanDMC added a commit to OceanicJS/Oceanic that referenced this pull request Feb 17, 2025
mazylol pushed a commit to mazylol/discord-api-docs that referenced this pull request Jul 3, 2025
discord#7288)

* Update ends_at and starts_at to be nullable, not optional

* Fix ends_at, starts_at description for test entitlements
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Entitlement object's starts_at and ends_at is nullable, but is not documented as such

5 participants